Offers tools to work with the MATERIAL_TYPE enumeration. More...
Static Public Member Functions | |
static nkMemory::StringView | enumToString (MATERIAL_TYPE value) |
static MATERIAL_TYPE | stringToEnum (nkMemory::StringView value) |
Offers tools to work with the MATERIAL_TYPE enumeration.
|
static |
Translates an enumeration value into its string representation. For instance, PBS will get translated into "PBS". Any other value will be be translated with "UNKNOWN".
value | The enumeration value to translate. |
|
static |
Translates a string representation into its associated enumeration value. For instance, "PBS" will get translated into PBS. Any other value will be translated into PBS.
value | The string representation to translate. |